import request from '@/utils/request'

// 查询论坛帖子收藏列表
export function listForumCollect(query) {
  return request({
    url: '/system/forumCollect/list',
    method: 'get',
    params: query
  })
}

// 查询论坛帖子收藏详细
export function getForumCollect(id) {
  return request({
    url: '/system/forumCollect/' + id,
    method: 'get'
  })
}

// 新增论坛帖子收藏
export function addForumCollect(data) {
  return request({
    url: '/system/forumCollect',
    method: 'post',
    data: data
  })
}

// 修改论坛帖子收藏
export function updateForumCollect(data) {
  return request({
    url: '/system/forumCollect',
    method: 'put',
    data: data
  })
}

// 删除论坛帖子收藏
export function delForumCollect(id) {
  return request({
    url: '/system/forumCollect/' + id,
    method: 'delete'
  })
}
